package com.example.demo.controller;

import com.example.demo.domain.Author;
import com.example.demo.domain.Book;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @GetMapping("demo")
    public String demo(@ModelAttribute("b") Book book,@ModelAttribute("a") Author author) {
        Integer a = 1/0;
        return "";
    }

}
